#! /bin/sh

test "x$srcdir" = x && srcdir=.
test "x$builddir" = x && builddir=.
test "x$top_builddir" = x && top_builddir=../..

test_bidi="$builddir/BidiTest$EXEEXT"
test_bidi_character="$builddir/BidiCharacterTest$EXEEXT"

if test $# = 0; then
	set /dev/stdin
fi

for f in "$@"; do
	if test "x$(basename $f)" = "xBidiTest.txt"; then
		$test_bidi $f || exit 1
	else
		$test_bidi_character $f || exit 1
	fi
done
